﻿using com.guojin.core.io.message;
using com.guojin.core.io;

namespace com.guojin.mj.net.message.login
{
    public class LiuYan : Message
    {
        public static int TYPE = 7;
        public static int ID = 155;

        private int Types;//0代表无法创建房间，  1代表 其他问题
        private string Said;//问题描述
        private string Base64;//Image 转换的Base64格式  如果base64==“a”则代表用户没有上传图片，该图片为空
        private string Account;//账号
        public static LiuYan Create(int t,string s,string b,string a) {
            LiuYan ly = new login.LiuYan();
            ly.Types = t;
            ly.Said = s;
            ly.Base64 = b;
            ly.Account = a;
            return ly;
        }
        public void decode(core.io.Input _in)
        {

        }

        public void encode(Output _out)
        {
            _out.writeInt(Types);
            _out.writeString(Said);
            _out.writeString(Base64);
            _out.writeString(Account);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "";
        }
    }
}
